package dataservice.userDataService;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;

import po.userPO.StudentPO;
import po.userPO.UserPO;
import dataservice.ResultMessage;



public interface UserDatabaseService extends Remote{
	public ResultMessage insert(UserPO po) throws RemoteException;

	public ResultMessage delete(UserPO po) throws RemoteException;

	public ResultMessage update(UserPO po) throws RemoteException;

	public UserPO find(String id) throws RemoteException;
	
	public ArrayList<UserPO> findAll(int userType) throws RemoteException;

	public ArrayList<UserPO> findAllByDepartment(int userType,String department) throws RemoteException;
	
	public ResultMessage update(String id, String password) throws RemoteException;

	public String getTeacherID(String teacherName) throws RemoteException;
	
	public ArrayList<StudentPO> findStudentPOByTerm(int grade,String department) throws RemoteException;
}
